﻿@model LoveEat.MODEL.seat
@{
    Html.EnableClientValidation();
}

@using System.Web.Mvc.Html
<form role="form" action="@Url.Action("Do_AddSeat", "BusinessManagement")" class="form-horizontal" method="post" id="signupForm" name="signupForm" novalidate="novalidate" enctype="multipart/form-data">
    <input type="hidden" name="returnUrl" value="@Request.Params["ReturnUrl"]" />

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title bold" id="myModalLabel">添加桌位号</h4>
    </div>
    <div class="modal-body">

        <input type="hidden" id="shop_id" name="shop_id" value="@ViewBag.shop_id" />
        <input type="hidden" id="returnUrl" name="returnUrl" value="@ViewBag.returnUrl " />

        桌位号：
        @Html.TextBoxFor(model => model.seat_number)
        @*<input type="text" name="seat_number" id="seat_number" />*@


    </div>
    <div class="modal-footer">
        @*@if (Model != null)
            {*@
        <button type="submit" class="btn btn-success">确定</button>
        @*//}*@

        <button type="reset" class="btn btn-default " class="close" data-dismiss="modal" aria-hidden="true">
            取消
        </button>

    </div>
    <script type="text/javascript">
  
        $().ready(function () {
            $("#signupForm").validate({
                rules: {
                    seat_number: "required"
                },messages:{

                    seat_number: "请填写桌位号"

                }
            });
        })
    </script>
</form>
